// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//iview
import iView from 'iview';
import 'iview/dist/styles/iview.css';
//vuex
import store from './store';
//axios
import axios from 'axios'
import vueAxios from 'vue-axios'

import babelPolyfill from 'babel-polyfill'; // 解决ie的兼容

//图片拉加载
import VueLazyload from 'vue-lazyload'

Vue.config.productionTip = false

Vue.use(vueAxios, axios)
Vue.use(iView);
Vue.use(VueLazyload, {
  error: './static/error.png',//这个是请求失败后显示的图片
  loading: './static/load.gif',//这个是加载的loading过渡效果
  try: 2 // 这个是加载图片数量
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
